package com.buba.service.impl;

import com.buba.dao.DepartInfoMapper;
import com.buba.pojo.DepartInfo;
import com.buba.service.DepartInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杨柳
 * @title DepartInfoServiceImpl
 * @date 2024/4/23 8:33
 */
@Service
public class DepartInfoServiceImpl implements DepartInfoService {
    @Autowired
    private DepartInfoMapper departInfoMapper;

    @Override
    public List<DepartInfo> selDepartInfo() {
        return departInfoMapper.selDepartInfo();
    }

    @Override
    public long delDepartInfo(Integer departId) {
        return departInfoMapper.delDepartInfo(departId);
    }

    @Override
    public long updDepartInfo(DepartInfo departInfo) {
        return departInfoMapper.updDepartInfo(departInfo);
    }

    @Override
    public long addDepartInfo(DepartInfo departInfo) {
        return departInfoMapper.addDepartInfo(departInfo);
    }
}
